import {
  request
} from './request';
//获取验证码
export function getIndexMain(data) {
  return request({
    url: 'index/v2/indexShouImg',
    method: "POST",
    data: data.data,
  })
}
//车列表
export function getcarlist(data) {
  return request({
    url: 'car/findByUseNature',
    method: "GET",
    data: data.data,
  })
}
//获取车辆详情
export function carDetail(data) {
  return request({
    url: 'car/v2/detail',
    method: "POST",
    data: data.data
  })
}
  // 获取优惠价格
  export function getMemberPrice(data) {
    return request({
      url: 'order/findDiscountByCarId',
      method: "GET",
      data: data.data
    })
  }
  // 下单接口
export function saveOrder(data) {
  return request({
    url: 'order/v3/saveOrder',
    method: "POST",
    data: data.data
  })
}
// 获取用户信息
export function getUserInfo(data) {
  return request({
    url: 'getUserInfo',
    method: "GET",
    data: data.data
  })
}
//获取用户历史下单信息
export function getoldorder(data) {
  return request({
    url: 'order/findOldOrder',
    method: "GET",
    data: data.data
  })
}